home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / wp / trs141f.zip / TT.BAT < prev    next >
DOS Batch File  |  1992-05-12  |  1KB  |  28 lines

  1. ::======================================================================
  2. ::                                                                    ::
  3. :: Usage:                                                             ::
  4. ::        TT f1 f2 ... fn                                             ::
  5. ::                                                                    ::
  6. :: Will invoke terse to edit the file f1. When you exit this editing  ::
  7. :: session (using Alt-X or Alt-Q), terse be invoked again to edit the ::
  8. :: file f2, when you will finish with f3 terse will be invoked to     ::
  9. :: edit f3, and so on until until fn is edited.                       ::
  10. ::                                                                    ::
  11. :: Any of f1 ... fn may be a wild card, in which case terse would     ::
  12. :: be invoked  on all files matching this wild card.                  ::
  13. ::                                                                    ::
  14. :: Example:                                                           ::
  15. ::       TT *.bat c:\config.sys d:chap?.*                             ::
  16. ::                                                                    ::
  17. ::======================================================================
  18. @echo off
  19. set editor=t.com
  20. set tparams=
  21. :loop
  22. if [%1]==[] goto exec
  23. set tparams=%tparams% %1
  24. shift
  25. goto loop
  26. :exec
  27. for %%f in (%tparams%) do %editor% %%f
  28.